package com.gkzf.ai.module.crm.controller.admin.simpleCredit.vo;

import com.gkzf.ai.module.crm.framework.annotations.JsonKey;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 从未逾期贷款账户信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NeverOverdueLoanAccount implements CreditCardAccount{

    /**
     * 开立日期
     */
    @JsonKey(value = "开立日期")
    private String openDate;

    /**
     * 到期日期
     */
    @JsonKey(value = "到期日期")
    private String dueDate;

    /**
     * 机构名称
     */
    @JsonKey(value = "机构名称")
    private String institutionName;

    /**
     * 贷款金额
     */
    @JsonKey(value = "贷款金额")
    private BigDecimal loanAmount;

    /**
     * 账户币种
     */
    @JsonKey(value = "账户币种")
    private String currency;

    /**
     * 业务种类
     */
    @JsonKey(value = "业务种类")
    private String businessType;

    /**
     * 余额
     */
    @JsonKey(value = "余额")
    private BigDecimal balance;

    /**
     * 账户状态
     */
    @JsonKey(value = "账户状态")
    private String accountStatus;

    @Override
    public String accountStatus() {
        return accountStatus;
    }

    @Override
    public String businessType() {
        return businessType;
    }

    @Override
    public String institutionName() {
        return institutionName;
    }

    @Override
    public String hasOverdue90dPlus() {
        return "0";
    }

    @Override
    public String getOpenDate() {
        return openDate;
    }
}
